package club.jdiy.utils.poi;

/**
 * Excel数据导入列元信息定义．
 *
 * @param <T> 实体类
 * @author ziquee(子秋) QQ号:39886616 主页: http://www.jdiy.club
 * @version 20210603
 */
public class ImportMeta<T> {
    private String head;
    private Parser<T> parser;
    public final static ImportMeta IGNORE = new ImportMeta<>(null, (c, v) -> {});

    /**
     * head为null，则不检查该表头的有效性。
     *
     * @param head
     * @param parser
     */
    public ImportMeta(String head, Parser<T> parser) {
        this.head = head;
        this.parser = parser;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public Parser getParser() {
        return parser;
    }

    public void setParser(Parser parser) {
        this.parser = parser;
    }
}
